package com.ruoyi.order.mapper;

import com.ruoyi.order.domain.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderInfoMapper {

    int insert(OrderInfo order);

    OrderInfo selectByUserAndGoods(@Param("userId") Long userId, @Param("goodsId") Long goodsId);

    int updateStatus(@Param("id") Long id, @Param("status") Integer status);

    int deleteById(@Param("id") Long id);
}
